#include "dominion.h"
#include "dominion_helpers.h"
#include "rngs.h"

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>

// This test checks the Village card (card enum 14)
int main()
{
	int k[10] = {council_room, gardens, embargo, village, minion, mine, cutpurse, sea_hag, tribute, smithy};
	struct gameState G;
	int randomSeed;
	int m;
	int numPlayer = 3;
	
	srand(time(NULL));
	randomSeed = (rand() % 10)+1;

	m = initializeGame(numPlayer, k, randomSeed, &G);
	
	G.handCount[0] = 1;
	G.numActions = 0;
	G.hand[0][0] = 14;
	
	villageCard(0, &G, 0);
	printf("Expected hand count: 1. Actual: %i. ", G.handCount[0]);
	if(G.handCount[0] == 1)
		printf("PASSED.\n");
	else
		printf("FAILED.\n");
	printf("Expected actions: 2. Actual: %i. ", G.numActions);
	if(G.numActions == 2)
		printf("PASSED.\n");
	else
		printf("FAILED.\n");
	
	return 0;
}